<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Basic PowerPC Built-in Functions Available on ISA 3.1 (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="Basic PowerPC Built-in Functions Available on ISA 3.1 (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="Basic PowerPC Built-in Functions Available on ISA 3.1 (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Basic-PowerPC-Built_002din-Functions.html" rel="up" title="Basic PowerPC Built-in Functions">
<link href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e0.html" rel="prev" title="Basic PowerPC Built-in Functions Available on ISA 3.0">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
-->
</style>


</head>

<body lang="en_US">
<div class="subsubsection-level-extent" id="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e1">
<div class="nav-panel">
<p>
Previous: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e0.html" accesskey="p" rel="prev">Basic PowerPC Built-in Functions Available on ISA 3.0</a>, Up: <a href="Basic-PowerPC-Built_002din-Functions.html" accesskey="u" rel="up">Basic PowerPC Built-in Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e1-1"><span>6.60.22.6 Basic PowerPC Built-in Functions Available on ISA 3.1<a class="copiable-link" href="#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e1-1"> &para;</a></span></h4>

<p>The basic built-in functions described in this section are
available on the PowerPC family of processors starting with ISA 3.1.
Unless specific options are explicitly disabled on the
command line, specifying option <samp class="option">-mcpu=power10</samp> has the effect of
enabling all the same options as for <samp class="option">-mcpu=power9</samp>.
</p>
<p>The following built-in functions are available on Linux 64-bit systems
that use a future architecture instruction set (<samp class="option">-mcpu=power10</samp>):
</p>
<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005fcfuged"><span class="category-def">Built-in Function: </span><span><code class="def-type">unsigned long long</code> <strong class="def-name">__builtin_cfuged</strong> <code class="def-code-arguments">(unsigned long long, unsigned long long)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005fcfuged"> &para;</a></span></dt>
<dd><p>Perform a 64-bit centrifuge operation, as if implemented by the
<code class="code">cfuged</code> instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005fcntlzdm"><span class="category-def">Built-in Function: </span><span><code class="def-type">unsigned long long</code> <strong class="def-name">__builtin_cntlzdm</strong> <code class="def-code-arguments">(unsigned long long, unsigned long long)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005fcntlzdm"> &para;</a></span></dt>
<dd><p>Perform a 64-bit count leading zeros operation under mask, as if
implemented by the <code class="code">cntlzdm</code> instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005fcnttzdm"><span class="category-def">Built-in Function: </span><span><code class="def-type">unsigned long long</code> <strong class="def-name">__builtin_cnttzdm</strong> <code class="def-code-arguments">(unsigned long long, unsigned long long)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005fcnttzdm"> &para;</a></span></dt>
<dd><p>Perform a 64-bit count trailing zeros operation under mask, as if
implemented by the <code class="code">cnttzdm</code> instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005fpdepd"><span class="category-def">Built-in Function: </span><span><code class="def-type">unsigned long long</code> <strong class="def-name">__builtin_pdepd</strong> <code class="def-code-arguments">(unsigned long long, unsigned long long)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005fpdepd"> &para;</a></span></dt>
<dd><p>Perform a 64-bit parallel bits deposit operation, as if implemented by the
<code class="code">pdepd</code> instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-_005f_005fbuiltin_005fpextd"><span class="category-def">Built-in Function: </span><span><code class="def-type">unsigned long long</code> <strong class="def-name">__builtin_pextd</strong> <code class="def-code-arguments">(unsigned long long, unsigned long long)</code><a class="copiable-link" href="#index-_005f_005fbuiltin_005fpextd"> &para;</a></span></dt>
<dd><p>Perform a 64-bit parallel bits extract operation, as if implemented by the
<code class="code">pextd</code> instruction.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-vsx_005fxl_005fsext"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector signed __int128</code> <strong class="def-name">vsx_xl_sext</strong> <code class="def-code-arguments">(signed long long, signed char *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fsext"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fsext-1"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector signed __int128</code> <strong class="def-name">vsx_xl_sext</strong> <code class="def-code-arguments">(signed long long, signed short *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fsext-1"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fsext-2"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector signed __int128</code> <strong class="def-name">vsx_xl_sext</strong> <code class="def-code-arguments">(signed long long, signed int *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fsext-2"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fsext-3"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector signed __int128</code> <strong class="def-name">vsx_xl_sext</strong> <code class="def-code-arguments">(signed long long, signed long long *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fsext-3"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fzext"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector unsigned __int128</code> <strong class="def-name">vsx_xl_zext</strong> <code class="def-code-arguments">(signed long long, unsigned char *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fzext"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fzext-1"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector unsigned __int128</code> <strong class="def-name">vsx_xl_zext</strong> <code class="def-code-arguments">(signed long long, unsigned short *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fzext-1"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fzext-2"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector unsigned __int128</code> <strong class="def-name">vsx_xl_zext</strong> <code class="def-code-arguments">(signed long long, unsigned int *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fzext-2"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vsx_005fxl_005fzext-3"><span class="category-def">Built-in Function: </span><span><code class="def-type">vector unsigned __int128</code> <strong class="def-name">vsx_xl_zext</strong> <code class="def-code-arguments">(signed long long, unsigned long long *)</code><a class="copiable-link" href="#index-vsx_005fxl_005fzext-3"> &para;</a></span></dt>
<dd>
<p>Load (and sign extend) to an __int128 vector, as if implemented by the ISA 3.1
<code class="code">lxvrbx</code>, <code class="code">lxvrhx</code>, <code class="code">lxvrwx</code>, and  <code class="code">lxvrdx</code>
instructions.
</p></dd></dl>

<dl class="first-deftypefn">
<dt class="deftypefn" id="index-vec_005fxst_005ftrunc"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector signed __int128, signed long long, signed char *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-1"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector signed __int128, signed long long, signed short *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-1"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-2"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector signed __int128, signed long long, signed int *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-2"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-3"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector signed __int128, signed long long, signed long long *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-3"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-4"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector unsigned __int128, signed long long, unsigned char *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-4"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-5"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector unsigned __int128, signed long long, unsigned short *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-5"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-6"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector unsigned __int128, signed long long, unsigned int *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-6"> &para;</a></span></dt>
<dt class="deftypefnx def-cmd-deftypefn" id="index-vec_005fxst_005ftrunc-7"><span class="category-def">Built-in Function: </span><span><code class="def-type">void</code> <strong class="def-name">vec_xst_trunc</strong> <code class="def-code-arguments">(vector unsigned __int128, signed long long, unsigned long long *)</code><a class="copiable-link" href="#index-vec_005fxst_005ftrunc-7"> &para;</a></span></dt>
<dd>
<p>Truncate and store the rightmost element of a vector, as if implemented by the
ISA 3.1 <code class="code">stxvrbx</code>, <code class="code">stxvrhx</code>, <code class="code">stxvrwx</code>, and <code class="code">stxvrdx</code>
instructions.
</p></dd></dl>

</div>
<hr>
<div class="nav-panel">
<p>
Previous: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-3_002e0.html">Basic PowerPC Built-in Functions Available on ISA 3.0</a>, Up: <a href="Basic-PowerPC-Built_002din-Functions.html">Basic PowerPC Built-in Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
